﻿
/*
NAILSUPERSTORE ® COMPANY
 
[HISTORY]
Created By  	: NGUYEN VAN TY
Created Date	: 03/04/2010
Modified By     :
Modified Date   :
Note            :

*/

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busBanner
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------

        public const string Id = "Id";
        public const string BannerName = "BannerName";
        public const string FilePath = "FilePath";
        public const string SortOrder = "SortOrder";
        public const string IsActive = "IsActive";
        public const string Url = "Url";
        public const string Effect = "Effect";
        public const string StartingDate = "StartingDate";
        public const string EndingDate = "EndingDate";
        public const string CreatedBy = "CreatedBy";
        public const string CreatedDate = "CreatedDate";
        public const string UpdatedBy = "UpdatedBy";
        public const string UpdatedDate = "UpdatedDate";
        public const string OrderBy = "OrderBy";
        public const string OrderDirection = "OrderDirection";
        public const string CurrentPage = "CurrentPage";
        public const string PageSize = "PageSize";
        public const string TotalRecords = "TotalRecords";
        public const string Condition = "Condition";
        private daoBanner _objDao;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busBanner()
        {
            _objDao = new daoBanner();
        }       
        public bool OrderDown(int _BannerId)
        {
            return _objDao.OrderDown(_BannerId);
        }
        public bool OrderUp(int _BannerId)
        {
            return _objDao.OrderUp(_BannerId);
        }
        public bool Active(int _BannerId)
        {
            return _objDao.Active(_BannerId);
        }
        public bool DeActive(int _BannerId)
        {
            return _objDao.DeActive(_BannerId);
        }
        public bool Delete(int _BannerId)
        {
            return _objDao.Delete(_BannerId);
        }       
        public bool Insert(Banner objData)
        {
            return _objDao.Insert(objData);
        }
        public bool Update(Banner objData)
        {
            return _objDao.Update(objData);
        }
        public Banner GetByID(int _BannerId)
        {
            return _objDao.GetByID(_BannerId);
        }
        public BannerCollection List(Banner objCondition)
        {
            return _objDao.List(objCondition);
        }       
    }
}

